import { _decorator, Component, Node } from 'cc';
import CocosInputMgr from '../ccinput/CocosInputMgr';
import SteamInputMgr from '../steam/SteamInputMgr';
const { ccclass, property } = _decorator;

@ccclass('InputComponent')
export class InputComponent extends Component {
    start() {
        SteamInputMgr.getInstance().start()
        SteamInputMgr.getInstance().setChangeDirAnlog(0, true)
        SteamInputMgr.getInstance().setChangeDirAnlog(1, true)
        CocosInputMgr.getInstance().start()
    }

    onDestroy() {
        CocosInputMgr.getInstance().onDestroy()
    }

    update(deltaTime: number) {
        SteamInputMgr.getInstance().update(deltaTime)
    }
}

